package com.hfut.eeg.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author 梁琦
 * @program: eeg
 * @Package com.hfut.eeg.dto
 * @Description: 登录完成后返回给前端的数据结构
 * @date 2019-11-05 10:58
 */
public class LoginResult {
    @ApiModelProperty("登录成功后的用户名")
    private String userName;

    @ApiModelProperty("登录成功后的用户密码")
    private String imgHead;

    @ApiModelProperty("登录成功后的用户权限标记（0->超级管理员；1->普通用户）")
    private int authority;

    public LoginResult() {
    }

    public LoginResult(String userName, String imgHead, int authority) {
        this.userName = userName;
        this.imgHead = imgHead;
        this.authority = authority;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImgHead() {
        return imgHead;
    }

    public void setImgHead(String imgHead) {
        this.imgHead = imgHead;
    }

    public int getAuthority() {
        return authority;
    }

    public void setAuthority(int authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "LoginResult{" +
                "userName='" + userName + '\'' +
                ", imgHead='" + imgHead + '\'' +
                ", authority=" + authority +
                '}';
    }
}
